Fix scoping issue caused by coffee-script's lack of shadowing