consolidating debug code a bit-- hopefully it works
Merge branch 'master' into gh-pages
script writes git hash into js file