update js script, add image format
Merge branch 'master' of https://github.com/jeromeky/photobox