moved the js file over to main directory