Made all the sources pass JSLint and JSDoc