Fixed bug when not including a callback function for loadScript.