added comment blocks to helpers.js