Added pe1 solution for js.