amend main-spec.js of input