update to use remote js