picture sort desktop app with javascript