added ping to .js