Update helpers.js

Added support for formal classes