rename javascript functions