simplify js issues