Fixes jquery error with wrong using of cookie()-Method

- error was "name is undefined"
- removed jQuery.cookie dependency