updating remote js