Update helper.js

Added helpers for common JS types.