organise js delivery, put things to addpropriate files