Fix the rename of js function reference