How to get the current URL in javascript? http://stackoverflow.com/questions/406192/how-to-get-the-current-url-in-javascript
$(location).attr('href');