Harshit & Kiran | Refactored some JS around photo part.