[addition] added "wrapper" from @CandidBlend on Github to wrap any lib in AMD/window attachment