JavaScript module for fast organizing of photo album