Remove excess code from coffee script