Added scriptManager object to ensure scripts load in the correct order