AMD/browser support, updated test and README.