Lo-fi JavaScript events module.