renaming JS functions