pub works as intended now, example js file
Merge branch 'master' of http://github.com/rogerano/pubsub