moving the js into the scripts folder