add requirejs for distribution
Merge branch 'master' into gh-pages