A reference for common javascript patterns I've used.