Grouping options by type. Making the coffeescript code more uniform