Update helper.js

Syntax edit to add explicit return.