Use javascript implementation