Split spacey file into two

This obviously won't work on non-nodeJS systems.
Need to find a way to do the require portably