Add non-requireJS support.

Also improve some comments.