Added correct URLs to activities.
Moved functions after objects, arrays, and regexes.