js improvments