We should move this into a JS file that gets included.