support multiple-instance and jshint trailing white space

1) support multiple instances
2) jshint trailing white spaces