refactored filenames/locations of javascript resources.