refactored main.js and added preload for filmstrip images