A simple pub/sub model for javascript apps