Particularly I want to define local jQuery (var jQuery) where jQuery should be stored (and also local $).
The problem is that jQuery operates directly with windo
You can remove it with .noConflict:
var localjQuery = jQuery.noConflict(true);
But it will have been in global scope before that call...