Generate Html file with optional js component