Fixed a missing div tag.
Cleaned up the activity scoring code.