Simplify js.