Extract this to an external file and just import the js.