Code examples from the book Social Data Visualization with HTML5 & JavaScript