Now pass location coords as JS function parameters