cleanup + improve Tuna.js support + a few bug fixes