How to add layers via script

https://playcanvas.com/project/1303313/overview/backrooms-remaster
I’m making a game and am adding a function where when you look at an object, it highlights, the game is in the untitled scene, the scripts are as followed:
test.js
item-script.js
and I am trying to add to the OutlineLayer.