updated results page
modified js to be object-oriented