Tidying up code to follow Meteor code standards.