Completed functionality for halloweenSweets in JS.