new constructor that accepts parameter

replaced jslint with jshint