Because the server side validation in NetSuite com...
# suitescript
a
Because the server side validation in NetSuite complain about functions they dont have in ES5 but you dont care about that because yours is a Client Script which would run in the Browser(Client Side) somebody from NetSuite clarify here this checking is in place because in some sopecific context client script code is also executed server side.