Split js code in js file. Oh and spend yet again too many time on trying to make d&d tests work corretly :(