some more changes on javascript