Use array for js commands, use objects for most ajax calls.