Attempt at JSON and refresh bug