move javascript to head and use jQuery CDN