Single page web application javascript end-to-end