Can we please make this code that can be imported from somewhere? Even a separate .js file would be better than hardcoding it in