minor js fix