Create botthing.js

Adapted from https://gist.github.com/nthitz/6505092