local json script get from js code whether it should get data from development or production server