Update helper.js

changed code for new handler