Some javascript changes