Cpp Get Current Url Javascript Error In The Main