stupid events add javascript bug