reorganize js libraries into cupid and non-cupid specific components