```coffeescript
initPage = ->
  # Fix stupid Chrome bug.
  # See https://code.google.com/p/chromium/issues/detail?id=388664
  #
  $('form').each ->
    $(this).attr('action', this.action);

  # Autofocus form fields with autofocus. We need to do this even though
  # browsers do it natively because (due to Turbolinks), we're always just
  # on the same single page. Duh!
  #
  $('[autofocus="autofocus"]').focus()

  # Run dem trackers if available.
  #
  _gs('track') if (_gs?)
  ga('send', 'pageview') if (ga?)

$(document)
  .on 'page:load', initPage
  .on 'ready', initPage
```

Add support for data-expand links.
user
```coffeescript
initPage = ->
  # Fix stupid Chrome bug.
  # See https://code.google.com/p/chromium/issues/detail?id=388664
  #
  $('form').each ->
    $(this).attr('action', this.action);

  # Autofocus form fields with autofocus. We need to do this even though
  # browsers do it natively because (due to Turbolinks), we're always just
  # on the same single page. Duh!
  #
  $('[autofocus="autofocus"]').focus()

  # Run dem trackers if available.
  #
  _gs('track') if (_gs?)
  ga('send', 'pageview') if (ga?)

expandElement = (e) ->
  el = $(this).data('expand')
  $(el).toggleClass('expanded')
  e.preventDefault()

$(document)
  .on 'page:load', initPage
  .on 'ready', initPage
  .on 'click', 'a[data-expand]', expandElement
```
assistant