Added preload script for JS

It finally works in the browser; I had to add a comment line for
processing.js to preload images in order for masking/transparency