Transition from static page to using js