Moving logic from view to controller
Added grunt tooling