fixed using $ insted of jQuery