Separated video JS to its own function.