Fix n00b js mistake - create iife for looped closure
Rudimentary coords and framebuffer