app/views/help/shortcuts.js.haml (3 lines of code) (raw):

:plain $("body").append("#{escape_javascript(render('shortcuts'))}"); $("#modal-shortcuts").modal();