Embedded JavaScript templates for component