general code cleanup

changed all references from IDs to classes
removed anchors with #
slimmed down js