added js2 mode