updated js file structure, added base url to index file for static assets