Fixed some errors in the docs javascript.html