add javascript version p3