added BSD license
Merge branch 'master' into gh-pages
replaced Number.isNaN with isNaN
Merge branch 'master' into gh-pages