Update helpers.js

Added lots of extra helper functions.  Will condense them and remove redundancy later.