Rename vars in js core