Update javascript/main.js

Clear Local storage function