Small js changes