write bin.js