Got the external file working

used 'document ready'