Simplified function in helper.js
Merge pull request #2 from jthagesk/refactoring

Simplified function in helper.js (Setter meg inn i koden:-))