modify javascript functions