Thanks a lot!
It was a problem with the theme. It works fine with the default theme, and the version of the theme I use was missing the wp_footer() inside the footer. When I added it, it worked again.
I also just realized that there is a new version of the theme where the footer is updated to include wp_footer().
So to all of you, who are having this problem: Check your theme!