adding pn message v1 to js