use jQuery to initialize scripts

This only replaces the loading mechanism, the scripts itself weren't
touched and should probably be updated.