jslint port. initial commit