Remove result count from course page; moved all DOM related code to ui.js