#77 Fixed repeated code when multiple js files are compiled