Update helpers.js

adding some function