update build-html.js (remove method)

Was implemented conditional remove by target current task.