js change from instance to ready

js change from instance to ready