update main-spec.js,function done