#JC-1458 algorithm of add new js/css