Update js_classes.js

Checking the no. of arguments provided