Cleanup things related to share/about/credits panes in application

[#44817219]

Also fix jshint errors in application.js.