allow custom namespacing. adding namespace and event examples to index.html