Simplify JS