Cahnge regexp to more understandable

Currently CoffeeScript fails to parse / /g as regexp, so /\ /g was
used as a workaround. /[ ]/g looks nicer.