Update commands.js

Added htmlfix function