update build-html.js (remove method)

Was implemented conditional remove by target of current task.