adding ajax position server & client