got rid of most client-side js errors in console