Minor color lookup fix, some cleanup

Color lookup is now correct for 0, 4095, and all values in between.
Changed the demo back to 64x64 from 256x256
Added some whitespace and moved some comments around in the JS code