Update Javascript API to conform to Vertigo 0.5.4 API.