clears up js