Adding non-supported video link was throwing js error