Help with JS Function

Laurence and I are working together BTW