Added AMD support #15

Will this do?

Added 2 simple tests for checking that it is required correctly and that it does not attach itself to the window.