Fixed bug with parsing script section of templates and name of components.
Fixed bug with parsing script section of templates and name of components.