Doesnt work and only shows a black screen with the words Cannot read properties of undefined (reading 'getParameter')