Why not just use an Array for holding the pixels. If pixels are changed, update a Canvas element and voila: easy pixel based graphics. Take a look at this tutorial here http://www.joocom.de/blog/emulator-tutorial . Have fun coding =)
As PlayCanvas announced there Runtime Engine as Open Source, how are your experiences with this WebGL engine? Is it easy to learn or are there similar ones which may be better to learn?