added a json reader in case you like the idea of sharing config between javascript client and backend