Added AMD compatibility to chucho.js