This repository has Java Script patterns with examples.