renaming JS method