Hooray for JavaScript callbacks!