Updated script.js to also work on "detailed" report page

Added a switch statement the determines the page and uses the appropriate jQuery selector sequence.