Fix jslint warnings
Updated documentation