rewrote js for instructiontext to html for clarity
changed "Total" names