Flushing out JS to append videos