Fix deploy history JSON button

Fixes https://git.hubteam.com/HubSpot/PaaS/issues/20

The event to trigger the JSON dialog was in the wrong place. I moved it.