First interation of a javascript-based hologram encoder/decoder