An Event provider for Javascript