update javascript tricks