Update js_classes.js

Updated the condition for checking the number of arguments.