refactor -- adding debug.js
script writes git hash into js file