Only define dependencies if not already loaded

Only define jquery, underscore and backbone if not already loaded.
This prevents conflicts especially with already-defined jquery
extentions.