changed js for video