From https://github.com/ichord/At.js