Fixed var names in draw.js (changed in 6de420a)