amd compatible js