```coffeescript
define ['jsmin'], ($) ->

  class SelectGroup

    constructor: (@parent = null, @callback = false) ->
      @selectParent = (if @parent != null then $(@parent) else $('.js-select-group'))
      @addHandlers()

    addHandlers: ->
      @selectParent.on 'change', (e) =>
        e.preventDefault()
        result = e.target.options[e.target.selectedIndex].text
        label = e.target.parentNode.find('.js-select-overlay').innerHTML = result
        if @callback then @callback(e.target)```

Tidy up mobile select group manager
user
```coffeescript
define ['jsmin'], ($) ->

  class SelectGroup

    constructor: (parent, callback) ->
      @parent = (if parent then $(parent) else $('.js-select-group'))
      @addHandlers()

    addHandlers: ->
      @parent.on 'change', (e) =>
        e.preventDefault()
        result = e.target.options[e.target.selectedIndex].text
        label = e.target.parentNode.find('.js-select-overlay').innerHTML = result
        if @callback then @callback(e.target)```
assistant