Move json settings to javascript