translated compiled hubot.js to conforming js