Build process starting to come together.

I had to append ./ to all require statements because otherwise R_JS doesn't associate them with module files.