AMD JavaScript tests