Updated solution.js for initial working version.