Can you move this into a .js file in assets?