Straight port of on.js => given

Original: https://gist.github.com/johan/3957352/161fe91eb8f55f38cb1a3bb803bfa93ba24460e5
Support files
Broken testem setup: before_tests suspected