It seems like the standard jquery plugin for url parsing.   I needed a function to get a querystring parameter.  I think it's also better to use a library to replace our SetGetParam function, but didn't make time to do that here.