Found the trick in the examples: hasclosebutton=’false’.
My fault. Problem solved by moving app.js to immediately above the closing head tag.