add locationProvider so that we can use html5mode in modern browsers