added debug level functionality to js
Merge branch 'master' of github.com:jcbarret/puzzlebitch