Cpp Get Current Url Javascript Error