moved .js files into scripts folder