Create helpers.js

Partially converted