Fix Typo, define $ as global