add yuidoc and jslint, fix all jslint errors