Added a jquery pub sub plugin
bunch of changes