Revert "Add patterns.js javascript."

This reverts commit fe59d5ab7a5637377a3d20e0397f78b4c000c197.

This should go into a feature branch first.