update readme, add define as amd module