move javascript inside js file