replaced feature detect by modernizr, added history && hashchange support