converted to amd anonymous module - close #488