js fix for m-webkit lable bug