registry design pattern in javascript module

Simple registry pattern in javascript implemented via module-closure

and then you can use it like: