Hello vissaeus !
there are misuse of JS in your code,
tempClass is not a class as usual , you write it as an 'inline' function.
when you do :
var something = function() // it's an inline function declaration not a class/object.
Classes - JavaScript | MDN[
^]
=================
=================
; closure .
ends your line of instructions with ";" it's securing execution and a well known ends for codelines ;;;;;;
=================
=================
one other thing , don't use native "src" attribute like that , you are going to confusion between object, and js resources.
=================
=================
in vulture.png?var= you can not use ? because it's request to server default symbols through a page call.
________________________________________________________________________
to debug easily a ~code :
- trace your var //
console.log(one_var);
console.table(array_var); with ; at ends
will display you if vars are stored or not in every location of your code, so in scope or in main.