I forget the changes I made, but they were important.
Manually merged and did some other stuff
Split out the video and gallery creation into distinct functions, and moved the thumbs interaction back to bindEvents