Simplify js wrapper