click-handler added, jquery moved to head tag