Added possibility to add optional script-block to the end of the main-template's content, implemented with Ideas list and its focus-on-load