get javascript to modify event