@gg4u I’m not sure what you mean by “without refactoring in components and templates”, do you have your 5k lines in one single file? Anyway I’d suggest you use Monaca. You can use the CLI to start a minimum project, just open the command line and runnpm install -g monaca followed by monaca create "your_project_name" and select Onsen UI and Onsen UI V2 JS Minimum. From there you can just add your HTML and link to your JS files and libraries in the www/index.html file. Sorry if this is not what you’re looking for.