JS: fixing padding issue