Add missing semicolons in preamble.js

Some statements in preamble.js are missing semicolons. I added them.