adds missing JS for component