removing all js and templates