Added missing method in helper.js