Can we move this to a javascript file?