Modified editAsset under assets.js