Fix conflicts in JS variable calling in hide and unhide.