Removing logging commands from views and javascript functions