Minor js changes