Update scripts.js

Moved containerElement initialization out of the declaration.

Check if this works.