added 'block' option for JavaScripts