missing 'method' parameter in the addObject's ajax call