Fixed undefined $ error in browser console.