address issues found by jshint
add stats html and js files to distribution