Sidehistorik
...
Using a techinque like Installing Javascript libraries or frameworks in Confluence - be sure the js file is loaded (this can be checked by viewing source, find the js include and test the complete URL)
Initialize in the Custom HTML
...