Added variables to the coffee script to make it more maintainable