Create a JavaScript source builder class.

Anything is better than all this array pushing and unshifting.

Closes #123.