Jshintrc added and fixing bugs