Cleaned up problem1.js for jslint
Cleaned up problem2.js for jslint