fix message handling and bump js version