updated knapsack.html and knapsack.js