Cpp Get Current Url Javascript Error Occurred