problems.js cleaned up