Fixed dependency scanning on load js