```coffeescript
###
# Copyright 2015-2016 ppy Pty. Ltd.
#
# This file is part of osu!web. osu!web is distributed with the hope of
# attracting more community contributions to the core ecosystem of osu!.
#
# osu!web is free software: you can redistribute it and/or modify
# it under the terms of the Affero GNU General Public License version 3
# as published by the Free Software Foundation.
#
# osu!web is distributed WITHOUT ANY WARRANTY; without even the implied
# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# See the GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with osu!web.  If not, see <http://www.gnu.org/licenses/>.
###

class @Hits
  @generate: ({score, playmode}) ->
    elements = ['count300', 'count100', 'count50']
    if playmode == 'mania'
      elements = ['countgeki', 'count300',  'countkatu', 'count100', 'count50']

    header = ''
    values = ''

    for elem, i in elements
      header += osu.trans "beatmaps.beatmapset.show.scoreboard.stats.#{elem}"
      values += "#{score[elem]}"

      if i < elements.length - 1
        header += '/'
        values += '/'

    header: header
    values: values
```

Clean up generating score values
user
```coffeescript
###
# Copyright 2015-2016 ppy Pty. Ltd.
#
# This file is part of osu!web. osu!web is distributed with the hope of
# attracting more community contributions to the core ecosystem of osu!.
#
# osu!web is free software: you can redistribute it and/or modify
# it under the terms of the Affero GNU General Public License version 3
# as published by the Free Software Foundation.
#
# osu!web is distributed WITHOUT ANY WARRANTY; without even the implied
# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# See the GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with osu!web.  If not, see <http://www.gnu.org/licenses/>.
###

class @Hits
  @generate: ({score, playmode}) ->
    elements = if playmode == 'mania'
      ['countgeki', 'count300',  'countkatu', 'count100', 'count50']
    else
      ['count300', 'count100', 'count50']

    header = ''
    values = ''

    header = _(elements)
        .map (elem) -> osu.trans "beatmaps.beatmapset.show.scoreboard.stats.#{elem}"
        .join '/'

    values = _(elements)
        .map (elem) -> osu.trans "#{score[elem]}"
        .join '/'

    header: header
    values: values
```
assistant