Single page web app using a classic Javascript architecture