simplify JS WIP