Fixed bug where $ was used as a shortcut to jQuery but wasn't assigned correctly