Added a directory structure
Moved misc functions into helpers.js