added isOrdered and compareTwo functions
finished bubbleSort in javascript