fork from https://drupal.org/project/requirejs.