refactoring/cleanup; removing libraries replace by jquery; in the middle of jshint