isolate angular into preload js