Adding karma and jshint to the project
Adding tests, karma configuration and dependencies
Delete useless variables and fixing jshint mistakes