Update web-dev-javascript-book.txt

using proper Git-Flavored Markdown formatting for code samples (only one - you can fix the rest) and a normal charset.