modify template to accomodate 1.7
make jshint happy, update dist/
clean up polling