Issue #1227: Javascript error in scroll validation
Fixed