added boilerplate js

and minor things