Added initial code to composite.js.

Also required it in index.js. Basic composition working.