fixed javascript files to account for prototype