Cleanups to remove console calls from javascript.