Changed from echo to return for asset printing