JacaScript event simulator