Various JavaScript Patterns --accompanied by in-line notes