fix require statement for contract.js and add the js file