refactored does.js, plus formatting changes. Closes #3

Deliberately refreshes one second late.