separate js classes from the param, added comments