Fixed typo in routes and switched to use HTML5 API