add amdefine

Signed-off-by: Joshua Rubin <jrubin@zvelo.com>
use when.js instead of callbacks

Signed-off-by: Joshua Rubin <jrubin@zvelo.com>
remove built js files and add a postinstall npm task

Signed-off-by: Joshua Rubin <jrubin@zvelo.com>
fix cleaning issue

Signed-off-by: Joshua Rubin <jrubin@zvelo.com>
fix the example

Signed-off-by: Joshua Rubin <jrubin@zvelo.com>