Moved front-end boot code to a SmartBlocks.init function