Removed some boilerplate code
Made sure html5 routing works on page refresh