fixed $.scripts.require

there were cases when the function was called several times