adding JSHint confix and fixing trivials from  #3