Added RequireJS support. Closes #3.