Now AMD compatible.
Updated demo to work with CoffeeScript version.