updated rakefile and karma