Updated coiner.js and index.js