I'm thinking it might be worth while to pull this generic JavaScript out into a js file that we load wherever needed. Then we can call it with something like:

highlighter.init($, '#schedule')

(Essentially, passing in jQuery, and the selector we want to select on)