clean up syntax, remove jquery dependency, and reorganize checkAnswer. add unit tests