Crafting navigation in a single page web application