Fix script order & banner checking order

- fix click event on banner clicks
- make cookies banner script a library
- call cookies banner before survey