fix rounding issue when delta is less than 0
Bumping version to 3.1.1
LICENSE.txt: bump copyright year
test/index.html:

* remove unneeded type="text/javascript"
* specify charset="iso-8859-1" and lang="en"
README.markdown: use more markdown syntax and break a very long line
add JSHint config