Proper way for themeforest?

  javascript, wordpress, wordpress-theming

I’m developing a social media WordPress theme for themeforest envato market and this theme has alot of rest api endpoints So I’m dealing with javascript mostly.

I have so many JS file like this:

enter image description here

This is a javascript function that fetches user stories.

My question is:

I know that themeforest have a coding standart. I wonder, using HTML in javascript files is okay with themeforest’s coding standarts? Or Do I need to create a HTML <template> and use clone node?

If anybody have an experience with them It would be nice :)!

Source: Ask Javascript Questions