js file restructure and Image Zoom