Sorting/JavaScript: Added bubbleSort