remove leftover logging in javascript