refactor tool_to_show in static_pages.js.coffee