Swapped JS and added output.