AMD compatible - #92 #83
Add sample for requirejs