more javascript fun! Broke up js into various files, updated notes.md