Yeah, that code looks correct at a glance to me, nicely done!
I think brackets is fine, that just looks like really strict jslint (style) issues.
Not that they're bad, but those are nuts-strict.
Anyway, I like plnkr.co's editor. It's online, and others like jsfiddle.net and codepen (.org, maybe ... dot something).
Local editors, sublime and vim. Both take more configuration, though.