updated model and added collection in AMD module format