\s is the correct regex symbol for spaces, think this also applies for js ;)