Javascript image editor/uploader written