Added define.amd to conform to the AMDJS spec