added constants
updated jshint