switching js libraries