Combined get() Ajax JavaScript functions into one function.
Combined get() Ajax JavaScript functions into one function.