Add main-comp.js

Split off main.js.