Abstract browser sync javascript to mock_data.yml