added a check for the main app element en removed the debug flag for blanket.js