EMBRYO-48: Restructuring of JavaScript files and new UI