Changes to main.coffee

Some initial steps to sorting I want to change the eventRows data
structure to a list, that has order, but havent done it yet.