port cards animation triggers to angular, refactor javascript, reorganize some markup