Create generic getObject, newObject, editObject JavaScript functions to replace and extend specific functions.