add javascript version p2