var init = function() {
  countChars(500, $('#submission_description'));
  countChars(500, $('#submission_goals'));
  countChars(255, $('#submission_problems'));
  menuCollapse($('#btn-menu'));
}

$(document).on('ready page:load', init);

var init = function() {
  countChars(500, $('#submission_description'));
  countChars(500, $('#submission_goals'));
  countChars(255, $('#submission_problems'));
  menuCollapse($('#btn-menu'));
}

$(document).on('turbolinks:load', init);

Fix issue with admin menu not working after navigating back