Ping Method
Added Js generics