Fixes onhashchange event and some minor animation changes