Modified Assets::render() function