fixed some prelim scroll JS errors