split main.js to extract test web ui into ui1.js