Produces 6 files: https://gist.github.com/smn/e0ae48ff451305a00649#file-gistfile1-js-L58-L65