js changes so that firefox