clash of clans - share feature, js divided to several files