update code to pass jslint
update coverage