Update main.js

removeall function