changes on javascript