Supports multiple js files in main. Works with outlayer
multiple files: fixed error checking length
Merge pull request #10 from seanhess/multiple-main-files

Supports multiple js files in main. Works with outlayer