Add jsdoc comments
Remove tidy code to use jquery less