Delete patterns.js

This file is obsolete and is replaced by a new structure and by templates.js