Update configure.js

Added clear funtion