modularize the UI js code
modularize the UI js code

singnet/singnet,inflector/singnet,jensenbox/singnet,jensenbox/singnet,singnet/singnet,jensenbox/singnet,singnet/singnet,jensenbox/singnet,inflector/singnet,inflector/singnet