modified javascript event blog