This tag -- together with the 3 preceding lines of JS -- needs to be moved up one line, within the ready() function.