Making tests pass in chrome 31