#595 fix markdown for js code blocks
#595 fix whitespace
#595 remove needless 'function Foo() {}' in tests