Update assetmanager.js

fix bug