Add build task and add 'main' property back in package.json