Coding standard and better use of Drupal.ajax.