integrated compiler into contract.js; build script done except lib integration