fix odd js problem