fix jshint error and add license header