remove old js file, display messages for certain actions