Learning to write AMD modules correctly...