R# not clever enough to rename inside Javascript