Reduced number of colors from 256 to 4 (3 used).
Dont wait for DOM ready. Load javascript at the bottom of the page instead.