Filter out already included javascript files requested via ajax.

Addition of ajaxPrefilter to stop loading of javascript files that are already loaded.