Add an interval check for jQuery before failing.

This change adds an check for jQuery before failing the javascript execution.  You can configure the number of tries and what the interval is.  By default it's 3 and 100 milliseconds each.  This is mainly geared toward fixing a timing issue with loading jQuery with require.  Suggestions for improvement welcome.