A jigsaw puzzle generator in javascript that loads images from the internet