Simplify js