Correct work with js dynamic loadimg