Fallback to jquery if scripts is undefined