Use uriparser.
UP.
UP.
Ready to parse the javascript.