created the js file for video pla