simplify js