adding latest js changes