Javascript Animated Page Transition