moved js files to js folder and editted index