weight entries js fix