Script now defines an AMD module if possible