Made blocks work with attributes
Added "window" to "jsPattern" tokens
Made the module work in a browser