Closes #1 and replaces jQuery with $ in closure.