minor javascript issue