add r.js, base AMD module; update Makefile
smash2amd
update builds