added video's view and fixed jQuery code