Bugfix: error in get access token from callback url when using Backbone-like front-end routes

There is a bug when using front-end routes. Eg. callback url is

    http://localhost/#auth/callback#access_token=xxx