Update assetmanager.js

Introduce the recursive parameter to allow adding assets from all subdirectories.