Added ability to load scripts per view