Chord, after first code review

Still to fix:
CSS-related stuff, multi-script issue and minor things.