added a wrapper to the text which allows non AMD files to be loaded as AMD