reformatted js

reformatted JavaScript code base