http://stackoverflow.com/questions/6257463/how-to-get-the-url-without-any-parameters-in-javascript
var url = window.location.href.split('?')[0];