reordering

makes more sense this order
Extracted helper functions to utils.js

This is starting to get messy
basic skeleton for the view

helpers have been extracted too