Issue #1630782 by nod_: Drupal.theme is not a constructor, don't use Drupal.theme.prototype.

PR for https://drupal.org/node/1630782