javascript revised with Saimon