Following Single Page Applications: Javascript end to end