Creating an objectTemp global var, containing the object ready to be sent as an update to the REST WS