Renamed script files; minor JS code change