Fixed so that they passed jsHint