I need to change the URL using Javascript, is that possible? If so, how can I do it?
You can go the way that Google Recommends for making Ajax apps crawlable using the window.location.hash
window.history.pushState({ page : x }, '', '/default.aspx?page=' + x);
You can go the way that Google Recommends for making Ajax apps crawlable using the window.location.hash