Add playback logging. Sort notes in javascript. Add comments.

Related Work Items: #6