Update: Adding events to browser environment (fixes #1559)