js warning fix