kill whitespace
make it work on Node as well as in browser