Bug 968091 -[Cost Control] Use lazy-load to load JS dependencies