refs #9 refs #5 added tiny pub sub lib based on jQuery events