Fix .html and .slice usage