added JS file for photo