fix to coffeescript bug, adds method to add classes for add_fields buttons, adds specific classes to buttons, and modifies coffeescript to utilize these changes