moved JS script to separate JS directory