kanged from https://github.com/hakimel/forkit.js, still looks nice :)