move javascript
javascript moved to js file