changed element.coffee to class.