javascripd modification